package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.MeentryTerms;
import com.jic.manager.entity.Merchant;
import com.jic.manager.request.MeentryTermsRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 入驻条款
 * @author : 
 * @email : 
 * @since : 2020-02-26 09:40:14
 * @version : v1.0.0
 */
@Mapper
public interface  MeentryTermsMapper {

    long insert(MeentryTerms meentryTerms);

    long delete(Long id);

    long update(MeentryTerms meentryTerms);

    MeentryTerms queryByPrimaryKey(Long id);

    List<MeentryTerms> query(MeentryTerms meentryTerms);

    List<MeentryTerms> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("meentryTermsRequest") MeentryTermsRequest meentryTermsRequest);

    long queryPageCount( @Param("meentryTermsRequest") MeentryTermsRequest meentryTermsRequest);

    Integer getTermsCountByParams(String code);

    void updateByParams(MeentryTermsRequest meentryTermsRequest);

    //商家 店铺详情页面查询入驻条款
    MeentryTerms getTermsInfo(MeentryTerms meentryTerms);
}